package com.wc.dao.impl;

import com.wc.dao.DeptDao;
import com.wc.domain.Dept;
import com.wc.fake.DB;

public class DeptDaoImpl implements DeptDao {

    @Override
    public Dept selectDeptByDeptno(Integer deptno) {
        for (Dept dept : DB.depts) {
            if(dept.getDeptno().equals(deptno)){
                return dept;
            }
        }
        return null;
    }
}
